package(default_visibility = ["//visibility:public"])

load(
    "//build:go.bzl",
    go_test = "go_test_conditional_pure",
)
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_test(
    name = "go_default_test",
    srcs = ["e2e_test.go"],
    out = "e2e.test",
    embed = [":go_default_library"],
    tags = ["e2e"],
    deps = [
        "//test/e2e/apimachinery:go_default_library",
        "//test/e2e/apps:go_default_library",
        "//test/e2e/auth:go_default_library",
        "//test/e2e/autoscaling:go_default_library",
        "//test/e2e/cloud:go_default_library",
        "//test/e2e/common:go_default_library",
        "//test/e2e/framework:go_default_library",
        "//test/e2e/framework/testfiles:go_default_library",
        "//test/e2e/framework/viperconfig:go_default_library",
        "//test/e2e/generated:go_default_library",
        "//test/e2e/instrumentation:go_default_library",
        "//test/e2e/kubectl:go_default_library",
        "//test/e2e/lifecycle:go_default_library",
        "//test/e2e/lifecycle/bootstrap:go_default_library",
        "//test/e2e/network:go_default_library",
        "//test/e2e/node:go_default_library",
        "//test/e2e/scalability:go_default_library",
        "//test/e2e/scheduling:go_default_library",
        "//test/e2e/servicecatalog:go_default_library",
        "//test/e2e/storage:go_default_library",
        "//test/e2e/storage/external:go_default_library",
        "//test/e2e/ui:go_default_library",
        "//test/e2e/windows:go_default_library",
        "//test/utils/image:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "e2e.go",
        "examples.go",
        "gke_local_ssd.go",
        "gke_node_pools.go",
    ],
    importpath = "k8s.io/kubernetes/test/e2e",
    deps = [
        "//pkg/api/v1/pod:go_default_library",
        "//staging/src/k8s.io/api/core/v1:go_default_library",
        "//staging/src/k8s.io/api/rbac/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
        "//staging/src/k8s.io/apimachinery/pkg/util/uuid:go_default_library",
        "//staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount:go_default_library",
        "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
        "//staging/src/k8s.io/client-go/plugin/pkg/client/auth:go_default_library",
        "//staging/src/k8s.io/component-base/logs:go_default_library",
        "//test/e2e/common:go_default_library",
        "//test/e2e/framework:go_default_library",
        "//test/e2e/framework/auth:go_default_library",
        "//test/e2e/framework/ginkgowrapper:go_default_library",
        "//test/e2e/framework/log:go_default_library",
        "//test/e2e/framework/pod:go_default_library",
        "//test/e2e/framework/providers/aws:go_default_library",
        "//test/e2e/framework/providers/azure:go_default_library",
        "//test/e2e/framework/providers/gce:go_default_library",
        "//test/e2e/framework/providers/kubemark:go_default_library",
        "//test/e2e/framework/providers/openstack:go_default_library",
        "//test/e2e/framework/providers/vsphere:go_default_library",
        "//test/e2e/framework/testfiles:go_default_library",
        "//vendor/github.com/onsi/ginkgo:go_default_library",
        "//vendor/github.com/onsi/ginkgo/config:go_default_library",
        "//vendor/github.com/onsi/ginkgo/reporters:go_default_library",
        "//vendor/github.com/onsi/gomega:go_default_library",
        "//vendor/k8s.io/klog:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//test/e2e/apimachinery:all-srcs",
        "//test/e2e/apps:all-srcs",
        "//test/e2e/auth:all-srcs",
        "//test/e2e/autoscaling:all-srcs",
        "//test/e2e/chaosmonkey:all-srcs",
        "//test/e2e/cloud:all-srcs",
        "//test/e2e/common:all-srcs",
        "//test/e2e/framework:all-srcs",
        "//test/e2e/generated:all-srcs",
        "//test/e2e/instrumentation:all-srcs",
        "//test/e2e/kubectl:all-srcs",
        "//test/e2e/lifecycle:all-srcs",
        "//test/e2e/manifest:all-srcs",
        "//test/e2e/network:all-srcs",
        "//test/e2e/node:all-srcs",
        "//test/e2e/perftype:all-srcs",
        "//test/e2e/scalability:all-srcs",
        "//test/e2e/scheduling:all-srcs",
        "//test/e2e/servicecatalog:all-srcs",
        "//test/e2e/storage:all-srcs",
        "//test/e2e/testing-manifests:all-srcs",
        "//test/e2e/ui:all-srcs",
        "//test/e2e/upgrades:all-srcs",
        "//test/e2e/windows:all-srcs",
    ],
    tags = ["automanaged"],
)
